package thread;

/**
 * Created by chengxiaoqi1 on 2019/3/5.
 */
public class MyThread extends Thread {

    private Sync sync;

    public Sync getSync() {
        return sync;
    }

    public void setSync(Sync sync) {
        this.sync = sync;
    }

    public MyThread(Sync sync) {
        this.sync = sync;
    }


    @Override
    public void run() {
        Sync sync = new Sync();
        sync.test();
    }
}
